package com.taotao.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springcloudAlibaba
 * @ClassName MemberService
 * @description:
 * @author: wangjin
 * @create: 2023-11-06 17:39
 * @Version 1.0
 **/
@RestController
public class MemberService {
    @Value("${server.port}")
    private String serverPort;

    @RequestMapping("/getUser")
    public String getUser(Integer userId) {
        return "你好，这是服务提供者,端口号：" + serverPort;
    }
}
